package org.vergil.aop;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
import org.vergil.SpringbootdemoApplication;

/**
 * Created by vergil on 5/6/17.
 */
@Aspect
@Component
public class LogAop {

    private Logger log = LoggerFactory.getLogger(LogAop.class);

    @Before(value = "execution(* org.vergil.core.dao.*.*(..))")
    public void log() {
        log.info("excution aop test");
    }
}
